﻿using System.Windows;
using WpfApp.ViewModels;

namespace WpfApp.Views
{
    /// <summary>
    /// CommandView.xaml 的交互逻辑
    /// </summary>
    public partial class CommandView : Window
    {
        CommandViewModel viewModel;
        public CommandView()
        {
            InitializeComponent();
            viewModel = new CommandViewModel();
            DataContext = viewModel;
        }

        private void AgeAdd_Click(object sender, RoutedEventArgs e)
        {
            viewModel.Age++;
        }
    }
}
